class B(object):
    def __init__(self):
        pass


    def functest(self):
        self.abcd="12345"


    def b(self):
        obj=getattr(self,'functest')
        obj()
        print(self.abcd)

C=B()
C.b()
